
<div class="headline">
    <h2>
        <?php echo $this->translate('Exams');?>
    </h2>
    <div class="tabs">
        <?php
        // Render the menu
        echo $this->navigation()
        ->menu()
        ->setContainer($this->navigation)
        ->render();
        ?>
    </div>
</div>
<div class="headline">
   
    <div class="tabs">
        <?php
        // Render the menu
        echo $this->navigation()
        ->menu()
        ->setContainer($this->subnavigation)
        ->render();
        ?>
    </div>
</div>
<div class="exam_preview_exam">
	<div class="exam_preview_exam_image">
	       <?php echo $this->itemPhoto($this->exam,'thumb.normal'); $exam = $this->exam;?>
	</div>
    <div class="exam_preview_exam_detail">
            <div class="exams_title">
              <h3><?php echo $this->htmlLink($exam->getHref(), $exam->getTitle()) ?></h3>
            </div>
		    <div class="exams_members">
		      <?php echo $this->locale()->toDateTime($exam->creation_date) ?>
		    </div>
            <div class="exams_members">
              <?php echo $this->translate('Post by') ?>
              <?php echo $this->htmlLink($exam->getOwner()->getHref(), $exam->getOwner()->getTitle()) ?>
            </div>
            <div class="exams_most_score_name">
                <?php echo $this->translate('Current user had the most largest score') ?>: <?php  $u = $exam->getMostUser(); if($u) echo $u->displayname; ?>
            </div>
            <div class="exams_most_score_value">
                <?php echo $this->translate('Current the most largest score') ?>: <?php echo $exam->most_score ?>
            </div>
            <div class="exams_desc">
              <?php echo $exam->getDescription() ?>
            </div>
            <div class="exam_select_testmethod">
                <div> 
                    <form method="get" action="<?php echo $this->url(array('action'=>'test','exam_id'=>$exam->exam_id),'exam_test',true) ?>">
                    <select name = "mt">
                        <option value="1"> <?php echo $this->translate('Only show one question in a times')?></option>
                        <option value="2"> <?php echo $this->translate('Show question into multi page')?></option>
                        <option value="3"> <?php echo $this->translate('Show all question in page')?></option>
                     </select>
                     <button type="submit" class="buttons"> <?php echo $this->translate('Start Test')?> </button>
                   </form>
                 </div>
            </div>      
    </div>
    
	
</div>